Exports a workspace or parts of a workspace. To import the exported data, see Importer.pm.
Syntax
./exporter.pm <options> <workspace>
Option | Description |
---|---|
--arformat=<format>
|
Archive file format. The default is TAR. |
--attributes=<list>
|
Attributes to export. |
--data=<list>
|
Structure data to export. |
--embedded | -e |
Output project in embedded format. |
--other=<list>
|
Other items to export. |
--output=<dir> | -o=<dir>
|
Output directory for the exported files. |
--prefix=<pfx> | -p=<pfx>
|
Prefix for output files. |
--settings=<list>
|
Settings to export. |
--skipadusers | -a |
Do not export Active Directory user information. Using -a implies -t. |
--startnode=<n> | -n=<n> |
Start export from this folder instead of the root folder. |
--stformat=<format>
|
Structure file format. The default is CSV. For information about the format of this file, see Standard CSV format. |
--struct | -s |
Export structure only (overrides embedded). |
--tempdir | -t=[/dir] |
Use a non-default value for $::tempdir in the export. If dir is not specified, the default of /krono/data/tmp is used. If the folder is not present, $::tempdir is used. |
--verbose | -v |
Verbose output. Writes debug information to the debug log (by default, located at /var/tmp/krono-<host>-<port>/kronotest.log.<uid> or similar). |
Remarks
When invoked without parameters, the script outputs usage information.
The <workspace> parameter is mandatory.
The –e and –s options work as follows:
Option arguments can be separated with the equals sign (=) or with a space.
For example, the following are equivalent:
./exporter.pm –-arformat=zip 1234
and
./exporter.pm --arformat zip 1234
If any of the options data, attributes, settings or other are specified, only the specified types of data are output. Otherwise, all object types within scope are output. The possible values for these options are defined by projectdata.txt.
For example:
./exporter.pm --data node –attributes nodetype 1234
The preceding example outputs folders (but not documents or files) and folder types (but no other attributes). No settings are included in this case.